package com.example.littleSpider.myapplication.activity;

import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentTransaction;
import android.widget.FrameLayout;

import com.example.littleSpider.myapplication.R;
import com.example.littleSpider.myapplication.base.BaseActivity;
import com.example.littleSpider.myapplication.fragment.findPartner.AllOfPartnerFragment;
import com.example.littleSpider.myapplication.fragment.findPartner.GuapoFragment;
import com.example.littleSpider.myapplication.myInterfaces.MethodInTitle;
import com.example.littleSpider.myapplication.view.TitleView;

import butterknife.BindView;

/**
 * 首页点击找对象进入的页面
 * Created by aduser on 2017/12/9.
 */

public class FindPartnerActivity extends BaseActivity implements MethodInTitle {

    @BindView(R.id.title_view)
    TitleView titleView;
    @BindView(R.id.content_fragment)
    FrameLayout fragment;

    FragmentManager manager;

    @Override
    protected int getLayoutRes() {
        return R.layout.activity_find_partner;
    }

    @Override
    protected void initView() {
        titleView.initMyTitle("蘑菇蘑菇,不会开花", this, false);
        manager = getSupportFragmentManager();
        FragmentTransaction transaction = manager.beginTransaction();
        transaction.add(R.id.content_fragment, new GuapoFragment());
        transaction.commit();
    }

    @Override
    protected void initData() {

    }

    @Override
    public void setGoBack() {
        finish();
    }

    @Override
    public void onRightOne() {

    }

    @Override
    public void onRightTwo() {

    }

    @Override
    public void onTitleText() {

    }

}
